package com.win.example;

import com.win.annoaop.Calculator;
import com.win.annoaop.CalculatorImpl;
import org.junit.Test;

public class test1 {
    @Test
    public void testProxyFactory(){
        ProxyFactory proxyFactory = new ProxyFactory(new CalculatorImpl());
        Calculator proxy = (Calculator) proxyFactory.getProxy();
        proxy.add(1,1);
    }
}
